#ifndef HGT_SURF_DIST_MEASURE_H
#define HGT_SURF_DIST_MEASURE_H 1

#include <FreeAnalysis/AnalysisTool.h>
#include <osgEarthFeatures/Feature>
#include <osgEarthAnnotation/FeatureNode>

class CSurfDistMeasure : public CAnalysisTool
{
public:
	CSurfDistMeasure(osgEarth::MapNode* pMapNode);
	
protected:
	virtual	~CSurfDistMeasure();

	virtual bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa);

	void CreateElement();

	osg::observer_ptr<osgEarth::Features::Geometry> m_opGeometry;
	osg::observer_ptr<osgEarth::Features::Feature> m_opFeature;
	osg::observer_ptr<osgEarth::Annotation::FeatureNode> m_opFeatureNode;	
};

#endif // HGT_SURF_DIST_MEASURE_H